package root.ResponseTimeScheduling;

import java.util.ArrayList;
import java.util.List;

public class ResponseTimeScheduling {
    public static void main(String[] args) {
        List<Task> tasks = new ArrayList<>();
        tasks.add(new Task(0, 5));  // Task 1: Arrival time = 0, Burst time = 5
        tasks.add(new Task(1, 3));  // Task 2: Arrival time = 1, Burst time = 3
        tasks.add(new Task(2, 2));  // Task 3: Arrival time = 2, Burst time = 2
        tasks.add(new Task(3, 1));  // Task 4: Arrival time = 3, Burst time = 1

        ResponseTimeScheduler scheduler = new ResponseTimeScheduler(tasks);
        scheduler.schedule();
    }
}
